package com.ktjy.actual.entity;

public class Paper {
    private String name;
    private Boxs boxs;

    public Paper() {
    }

    public Paper(Boxs boxs,String name) {
        this.boxs=boxs;
        this.name = name;
    }

    public void introduce() {
        System.out.println("打印"+boxs.getName()+"的"+ name);
    }


    public Paper(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "paper{name = " + name + "}";
    }
}
